package com.rongmei.jdsync;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Info;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author dongjun
 */
@OpenAPIDefinition(
    info = @Info(
        title = "京东商品同步API",
        version = "1.0",
        description = "京东商品数据同步接口文档"
    )
)
@SpringBootApplication
@EnableScheduling
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.rongmei.jdsync.client")
public class JdProductSyncApplication {
    private static final Logger log = LoggerFactory.getLogger(JdProductSyncApplication.class);

    public static void main(String[] args) {
        log.info("正在启动京东商品同步应用...");
        SpringApplication.run(JdProductSyncApplication.class, args);
        log.info("京东商品同步应用启动成功");
    }

}